#include <iostream>
#include "reactor.h"
#include "event.h"
using namespace std;

int main()
{
    reactor::Reactor rea;
    reactor::ServerEvent ev(&rea,reactor::EV_READ | reactor::EV_PERSIST ,"127.0.0.1",1039,&rea);
    std::cout << "current time:" << time(0) << std::endl;
    rea.registerEvent(&ev);
    rea.execEvents();
    return 0;
}

